# 存放元素
import allure
from selenium.webdriver.common.by import By
from base.base_page import Basspage


# yesmro商城前端



# 创建询价、提交询价单
class Login_enquiry(Basspage):
    """关于询价栏"""
    # 文本框
    # 点击快速询价
    user_enquiry = (By.XPATH, '//*[@id="header"]/div[4]/div[1]/div[1]/div/div/div/div[4]/div/div/a')
    # 点击文本编写
    user_tabulation = (By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[2]/div/div[1]/div[1]/a[3]/label')
    # 定位到文本框
    user_order_number = (
    By.XPATH, '//*[@id="textMatching"]/div[2]/div[1]/div[2]/textarea')
    # 点击匹配
    user_matching = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[2]/div/div[4]/div[2]/div[2]/div[2]/div[2]/label')
    # 点击清空
    user_empty = (By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[2]/div/div[4]/div[2]/div[2]/div[2]/div[1]/label')
    # 点击匹配后提示匹配成功，获取匹配成功的元素
    user_matching_succeed = (By.XPATH, '/html/body/div[10]/div/div/div[1]/div/span')

    """关于明细行"""
    # 全选
    user_check_all = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[1]/div[2]/div/div[2]/div[1]/label/span/input')
    # 点击第一行插入
    user_interposition = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[1]/div[2]/div/div[4]/div/div[12]/div/div[2]/label')

    # 定位选型输入框
    user_import = (By.XPATH,'//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[3]/div[1]/div/div[1]/div/div/div/div[2]/div/div[2]/div[1]/div[2]/input')
    # 点击第一行选择
    user_select = (By.XPATH,
                   '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[3]/div[1]/div/div[1]/div/div/div/div[2]/div/div[3]/div[3]/div[2]/div/div/div[1]/div[8]/div/a')
    # 点击第二行删除
    user_delete = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[1]/div[2]/div/div[5]/div/div[12]/div/div[3]/label')
    # 修改第一行sku数量
    user_quantity = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[1]/div[2]/div/div[4]/div/div[9]/div/input')
    # 点击输入产品型号
    user_product_model = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[1]/div[2]/div/div[8]/div[2]/div/input')
    # 明细行项目编号
    user_serial_number = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[1]/div[2]/div/div[8]/div[1]/div/input')
    # 询价备注
    user_project_remark = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[1]/div[2]/div/div[8]/div[2]/div[2]/div/textarea')
    # 第一行SKU备注
    user_remark = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[1]/div[2]/div/div[4]/div/div[11]/div/div/textarea')
    # 断言KU4059添加成功,获取型号元素
    user_KU4059 = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[1]/div[2]/div/div[7]/div/div[5]/div/div/div/label')
    # 断言FX1291是否被删除
    user_FX1291 = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[1]/div[2]/div/div[5]/div/div[5]/div/div[1]/div/label')

    """关于按钮"""
    # 点击立即下单
    user_close = (By.XPATH, '//*[@id="__layout"]/div/div[2]/div[3]/div[1]/div[2]/div/div[2]/div[2]/div[2]/label')
    # 点击提交询价
    user_Submit_inquiry = (
    By.XPATH, '//label[contains(text(),"提交询价")]')
    # 提示提交成功
    user_submit_successfully = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[4]/div/div[1]/div/div/div/div[1]/label')
    # 显示 自动报价完成
    user_offer_accomplish = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[4]/div/div[1]/div/div/div/div[2]/div/div[2]/label')
    # 点击查看询价详情
    user_enquiry_particulars = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[2]/div[3]/div[4]/div/div[1]/div/div/div/div[3]/a[2]')

    """询价单详情"""
    # 面包屑-询价单详情
    user_crumbs = (By.XPATH, '//*[@id="__layout"]/div/div[2]/div[1]/div/div[1]/div[1]/div/div[2]/span[5]')
    # 项目编号
    user_enquiry_number = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div[1]/div/div[2]/div[2]/div[1]/div[2]/div[2]/div/div[4]')
    # SKU型号
    user_enquiry_model = (By.XPATH,
                          '//*[@id="__layout"]/div/div[2]/div[1]/div/div[2]/div[2]/div[2]/div[1]/div[2]/div/div[3]/div/div[5]/div/div[1]/div/label')
